package com.leo.foodmaster.admin.recipe.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.leo.foodmaster.admin.recipe.entity.RecipeComboDetailsEntity;
import com.leo.foodmaster.commons.annotation.Excel;
import com.leo.foodmaster.commons.entity.File;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.util.List;

/**
 * 套餐主表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2021-11-09
 */
@Data
@ApiModel(value = "套餐主表")
@Accessors(chain = true)
public class RecipeComboDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "名称")
    @Excel(name = "名称")
    private String name;
    /**
     * 所属公司Id
     */
    @ApiModelProperty(value = "所属公司Id")
    private Long organId;
    /**
     * 套餐状态：0（正常）1（停用）
     */
    @ApiModelProperty(value = "套餐状态：0（正常）1（停用）")
    private String status;
    /**
     * 套餐价格
     */
    @ApiModelProperty(value = "套餐价格")
    private BigDecimal price;
    /**
     * 套餐重量
     */
    @ApiModelProperty(value = "套餐重量")
    private BigDecimal weight;
    /**
     * 分配单位
     */
    @ApiModelProperty(value = "分配单位")
    private Integer expressionUnit;
    /**
     * 套餐图片
     */
    @ApiModelProperty(value = "套餐图片")
    private List<File> pics;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String creator;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateUser;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    private List<RecipeComboDetailsEntity> detailList;
}
